<!--<?php
require_once template('header'); 
print <<< EOT
<!--右边开始-->
<script language="javascript">
function rowindex(tr)
{
   var Browser = new Object();
  if (Browser.isIE)
  {
    return tr.rowIndex;
  }
  else
  {
    table = tr.parentNode.parentNode;
    for (i = 0; i < table.rows.length; i ++ )
    {
      if (table.rows[i] == tr)
      {
        return i;
      }
    }
  }
}
 /**
   * 新增一个规格
   */
  function addSpec(obj)
  {
      var src   = obj.parentNode.parentNode;
      var idx   = rowindex(src);
      var tbl   = document.getElementById('attrTable');
      var row   = tbl.insertRow(idx + 1);
      var cell1 = row.insertCell(-1);
      var cell2 = row.insertCell(-1);
      var regx  = /<a([^>]+)<\/a>/i;
      cell1.className = 'label';
      cell1.innerHTML = src.childNodes[0].innerHTML.replace(/(.*)(addSpec)(.*)(\[)(\+)/i, "$1removeSpec$3$4-");
      cell2.innerHTML = src.childNodes[1].innerHTML.replace(/readOnly([^\s|>]*)/i, '');
  }

  /**
   * 删除规格值
   */
  function removeSpec(obj)
  {
      var row = rowindex(obj.parentNode.parentNode);
      var tbl = document.getElementById('attrTable');

      tbl.deleteRow(row);
  }
  
function setTab(area,id) {
	var tabArea=document.getElementById(area);
	var contents=tabArea.childNodes;
	for(i=0; i<contents.length; i++) {
		if(contents[i].className=='tabcontent'){contents[i].style.display='none';}
	}
	document.getElementById(id).style.display='';
	var tabs=document.getElementById(area+'tabs').getElementsByTagName('a');
	for(i=0; i<tabs.length; i++) { tabs[i].className='tab'; }
	document.getElementById(id+'tab').className='tab curtab';
	document.getElementById(id+'tab').blur();
}
$(function(){
//显示所有设置
$("#goods_all").click(function(e){
$("div").show();
$("#question").hide();
});

 //查询文章
$("#query_article").click(function(e){
$.getJSON(
"ajax.php",
{action:"article",art_title:$('#art_title').val(),rand:Math.random()},
function(json){
$("#article_list").empty();
$.each(json, function(i){
$("<option value='"+json[i].uid+"'>"+json[i].board_subject+"</option>").appendTo("#article_list");
});
});
});
//添加
$("#add").click(function(e){
$('#article_list option:selected').appendTo('#lst');
});
//移除
$("#romove").click(function(e){
$('#lst option:selected').appendTo('#article_list');
});
//全 移
$("#alldel").click(function(e){
$('#lst option').appendTo('#article_list');
});
//全加
$("#addall").click(function(e){
$('#article_list option').appendTo('#lst');
});

//关联商品
$("#query_goods").click(function(e){
$.getJSON(
"ajax.php",
{action:"searchgoods",goods_name:$('#goods_title').val(),rand:Math.random()},
function(json){
$("#goods_list").empty();
$.each(json, function(i){
$("<option value='"+json[i].uid+"'>"+json[i].goods_name+"</option>").appendTo("#goods_list");
});
});
});
//添加
$("#add_goods").click(function(e){
$('#goods_list option:selected').appendTo('#goods_lst');
});
//移除
$("#romove_goods").click(function(e){
$('#goods_lst option:selected').appendTo('#goods_list');
});
//全 移
$("#alldel_goods").click(function(e){
$('#goods_lst option').appendTo('#goods_list');
});
//全加
$("#addall_goods").click(function(e){
$('#goods_list option').appendTo('#goods_lst');
});

//供货商列表
$("#goods_supply_id").click(function(e){
$.getJSON(
"ajax.php",
{action:"supply",rand:Math.random()},
function(json){
$("#goods_supply_id").empty();
//error here——modyfy by dxd
$.each(json, function(i){
$("<option value='"+json[i].supply_id+"'>"+json[i].supply_id+' '+ json[i].supply_company+"</option>").appendTo("#goods_supply_id");
});
//end error
 $("#goods_supply_id").attr("value",'$goods_supply_id');
})
});

//扩展分类增加
$("#addcat").click(function(e){
 $("#addcat").after($("#other").clone()); 
});

//属性选择
$("#typeid").change(function(){
$("#att").load("ajax.php?action=attvalue&goods_id=$uid&type_id="+$("#typeid").val()+"&rand="+Math.random());
});

<!--
EOT;
if($action=='edit'){
print <<<EOT
-->
$("#att").load("ajax.php?action=attvalue&goods_id=$uid&type_id=$arrty_type[uid]&rand=$m_now_time");
<!--
EOT;
}else { print <<<EOT
-->
$("#att").load("ajax.php?action=attvalue&goods_id=$uid&type_id="+$("#typeid").val());
<!--
EOT;
} print <<<EOT
-->

//上传相册
$(".addimg").click(function(e){
//error here——modify by dxd
$(this).parent("p").after($(".g_img:first").clone(true)); 
//end error
});
$(".delimg").click(function(e){
	if($('#gallery p').length>1) $(this).parent("p").remove(); 
});

$("#is_event").click(function(e){
       $("#ev_price").toggle();
});
var event = $goods_class;
if(event==1){
$("#is_event").attr("checked",true);//打勾
$("#ev_price").show();
}
//价格选择处理
$("#goods_price").click(function(){
user_price();
});
$('input[@name=price_sale]').get($price_chk).checked = true;
user_price();
$('#goods_sale_price').change(function(){
user_price();
});
//--------------------------------------------------商品添加
$('#goods_add').submit(function() {
    var msg='';
    if ($('#goods_category').val() == 0) {
        msg += '请选择，商品分类！' + '\\n';
    }
    if($('#goods_name').val() == ''){
        msg += '请输入，商品名称！'+ '\\n';
    }
    if (msg.length > 0){
        alert(msg);
        return false;
		} else{
	     $('#lst option').each(function (key,e){
	     $("#article_id").attr("value",e.value+','+$("#article_id").val());
	    }); 
		 $('#goods_lst option').each(function (key,e){
	     $("#goods_add_goods").attr("value",e.value+'/'+$("#goods_add_goods").val());
	    });
        return true;
    }
});
});
//价格处理函数
function user_price()
{
if($('input[@name=price_sale][@checked]').val()==1){
$.ajax({
   type: "GET",
   url: "admincp.php?module=goods&action=goods_price&per="+$('input[@name=price_sale][@checked]').val(),
   dataType:"json",
   cache:false,
   success: function(json){
        $("#user_price").empty();
		$.each(json,function(i){
		$("#user_price").append(json[i].group_name+'：<input type="text" size="10"  value="'+parseFloat($('#goods_sale_price').val()*json[i].discount/100).toFixed(2)+'" class="text1" disabled="disabled" />'+json[i].discount+'%   ');
	}); 
   },
   error:function() {
    alert("error");
  }
});
//独立价格
}else {
  $.ajax({
   type: "GET",
   url: "admincp.php?module=goods&action=goods_price&goods_id=$uid&per="+$('input[@name=price_sale][@checked]').val(),
   dataType:"json",
   cache:false,
   success: function(json){
        $("#user_price").empty();
		$.each(json,function(i){
		if(json[i].price){
		  var price = json[i].price;
		}else{
		  var price = $('#goods_sale_price').val()*json[i].discount/100 ;
		} 
		$("#user_price").append(json[i].group_name+'：<input type="text" name="other_price[]" size="10"  value="'+parseFloat(price).toFixed(2)+'" class="text1"  /><input name="group_value[]" type="hidden" value="'+json[i].group_id+'" >   ');
	}); 
   },
   error:function() {
    alert("error");
  }
}); 
}
}
</script>
<div id="right">
	<form name="goods_add" id="goods_add" action="" method="post" enctype="multipart/form-data">
	<input type="hidden" name="setp" id="setp" value="1"/>
	<input type="hidden" name="article_id" id="article_id" value="0"/>
	<input type="hidden" name="goods_add_goods" id="goods_add_goods" />
	<input type="hidden" name="uid" id="uid" value="$uid"/>
	<input type="hidden" name="action" id="action" value="$action"/>
	<input type="hidden" name="goods_file1" id="goods_file1" value="$goods_file1"/>
	<input type="hidden" name="goods_file2" id="goods_file2" value="$goods_file2" />
	<div id="recom">
	<div class="tabs" id="recomtabs">
		<a class="tab curtab" id="goods_1tab" onclick="setTab('recom','goods_1');">基本信息</a>
		<a class="tab" id="goods_2tab"  onclick="setTab('recom','goods_2');">商品信息</a>
		<a class="tab" id="goods_3tab"  onclick="setTab('recom','goods_3');">详细信息</a> 
		<a class="tab" id="goods_4tab"  onclick="setTab('recom','goods_4');">商品属性</a>
		<a class="tab" id="goods_5tab"  onclick="setTab('recom','goods_5');">商品相册</a>
		<a class="tab" id="goods_6tab"  onclick="setTab('recom','goods_6');">关联商品</a> 
		<a class="tab" id="goods_7tab"  onclick="setTab('recom','goods_7');">关联文章</a> 
		<a class="tab" id="goods_8tab"  onclick="setTab('recom','goods_8');">其他信息</a> 
		<a class="tab" id="goods_9tab"  onclick="setTab('recom','goods_9');">扩展信息</a>
		<a class="tab" id="goods_all"   onclick="javascript:;">所有设置</a>
	</div>
	<div class="tabcontent" id="goods_1">
	<table cellpadding="0" cellspacing="1" class="list1">
		<tr>
			<th colspan="4">基本信息</th>
		</tr>
		<tr>
			<td class="td_left">商品展示</td>
			<td width="35%">$status_menu</td>
			<td class="td_left">商品摸板</td>
			<td width="35%">$tplpath_menu</td>
		</tr>
		<tr>
			<td class="td_left1">分类选择</td>
			<td>$cat_menu </td>
			<td class="td_left1">商品查看权限</td>
			<td>$grant_menu</td>
		</tr>
		<tr>
			<td class="td_left1">多重分类选择</td>
	  	  <td colspan="3">	  	    <input type="button"  name="addcat" id="addcat" value="添加" />
		   <span id="other">
  	      $other_menu </span>$other_cat</td>
		</tr>
		<tr>
			<td class="td_left1">商品输出顺序</td>
			<td><input type="text" name="goods_rank" id="goods_rank" value="$goods_rank" size="10" maxlength="10" class="text" /></td>
			<td class="td_left1">商品编号</td>
			<td><input type="text" name="goods_code" id="goods_code" value="$goods_code" size="10" maxlength="25" class="text" /></td>
		</tr>
	</table>
	</div>
	
	<!--商品信息 -->	
	<div class="tabcontent" id="goods_2" style="display: none">
	<table cellpadding="0" cellspacing="1" class="list1">
		<tr>
			<th colspan="4">商品信息</th>
		</tr>
		<tr>
			<td class="td_left">商品名称</td>
			<td colspan="3"><input type="text" name="goods_name" id="goods_name" value="$goods_name" size="43" maxlength="255" class="text" / > <input type="checkbox" name="use_direct" value="1" $use_direct_y/> 发布选择 <span class="cpsm">← 发布选择(选中时在前台显示)</span></td>
		</tr>
		<tr>
			<td class="td_left1">商品关键字</td>
			<td><textarea name="goods_key" rows="3" cols="34" class="text">$goods_key</textarea></td>
			<td class="td_left1">商品简介</td>
			<td><textarea name="goods_advance" rows="3" cols="34" class="text">$goods_advance</textarea></td>
		</tr>
		<tr>
			<td class="td_left">进货价</td>
			<td width="35%"><input type="text" name="goods_cost" id="goods_cost" value="$goods_cost" size="10" maxlength="15" class="text1" /> 元</td>
			<td class="td_left">市场价</td>
			<td width="35%"><input type="text" name="goods_market_price" id="goods_market_price" value="$goods_market_price" size="10" maxlength="15" class="text1" /> 元</td>
		</tr>
		<tr>
			<td class="td_left1">商城价</td>
			<td colspan="3"><input type="text" name="goods_sale_price" id="goods_sale_price" value="$goods_sale_price" size="10" maxlength="15" class="text1" /> 元
			<span id="goods_price">
  			<input type="radio" name="price_sale"   value="1" />统一折扣价
      		<input type="radio" name="price_sale"   value="2" />独立扩展价格
			</span>
			</td>
		</tr>
		<tr>
			<td class="td_left1">会员价格</td>
			<td colspan="3" id="user_price"></td>
		</tr>
		<tr>
			<td class="td_left">积分(点)</td>
			<td><input type="text" name="goods_point" id="goods_point" value="$goods_point" size="10" maxlength="15" class="text" /> 点</td>
			<td class="td_left">赢销币</td>
			<td><input type="text" name="goods_mony" id="goods_mony" value="$goods_mony" size="10" maxlength="15" class="text" /></td>
		</tr>
		<tr>
			<td class="td_left1">商品重量</td>
			<td><input type="text" name="goods_kg" id="goods_kg" value="$goods_kg" size="10" maxlength="15" class="text" /> kg</td>
			<td class="td_left1">商品品牌</td>
			<td>$brand_menu</td>
		</tr>
		<tr>
			<td  colspan="2"class="td_left1">商品详细大图<p class="cpsm">不支持中文文件名,图片尺寸等于skin尺寸,放大图片可使用任意尺寸,系统自动调节图片大小.</p></td>
			<td colspan="2"><input type="file" name="goods_file2" id="goods_file2"  size="30" class="text" /></td>
		</tr>
		<tr>
			<td colspan="2" class="td_left1">商品缩图<p class="cpsm">(不上传系统自动生成 宽：$cf_indexw 高：$cf_indexh)</p></td>
			<td colspan="2"><input type="file" name="goods_file1" id="goods_file1"  size="30" class="text" /></td>
		</tr>
		<tr>
			<td class="td_left1">促销商品</td>
			<td colspan="3"><input type="checkbox" name="is_event"  id="is_event" value="1" /> ← 发布 <span class="cpsm">← 选中发布促销商品</span></td>
		</tr>
		<tbody id="ev_price" style="display: none">
		<tr>
			<td colspan="2" class="td_left1">促销价格</td>
			<td colspan="2"><input type="text" name="event_price" id="event_price" value="$event_price" size="10" maxlength="15" class="text" /> 元</td>
		</tr>
		<tr>
			<td colspan="2" class="td_left1">促销开始时间</td>
		<td colspan="2">
				 <input type="text" name="start_date" size="29" value="$start_date" id="start_time" class="text" /><input type="reset" value="..." onclick="return showCalendar('start_time', 'y-m-d');" class="inp" />
			</td>
		</tr>
		<tr>
			<td colspan="2" class="td_left1">促销结束时间</td>
			<td colspan="2">
			<input type="text" name="end_date" size="29" value="$end_date" id="end_time" class="text" /><input type="reset" value="..." onclick="return showCalendar('end_time', 'y-m-d');" class="inp" />
			</td>
		</tr>
		</tbody>
	</table>
	</div>
		
	<div class="tabcontent" id="goods_3" style="display: none">
	<table cellpadding="0" cellspacing="1" class="list1">
		<tr>
			<th width="4%">ID</th>
			<th width="24%">详细信息</th>
			<th>操作</th>
		</tr>
		<tr>
			<td>1</td>
			<td class="td_left1">HTML 使用选择<p class="cpsm">(钩选时为使用，否则为不使用)</p></td>
			<td><input name="use_html" type="checkbox" id="use_html" value="1"  $use_html_y />
			HTML使用</td>
		</tr>
		<tr>
			<td>2</td>
			<td class="td_left1">商品说明</td>
			<td>
<!--fck
EOT;
$oFCKeditor->Create();
print <<<EOT
fck-->
	</td>
		</tr>
	</table>
	</div>
	
	<div class="tabcontent" id="goods_4" style="display: none">
	<table cellpadding="0" cellspacing="1" class="list1">
		<tr>
			<th width="4%">ID</th>
			<th width="54%">商品属性</th>
			<th>操作</th>
		</tr>
		<tr>
			<td>1</td>
			<td class="td_left1">商品属性<p class="cpsm">此处为商品属性设定.</p></td>
			<td>
			$type_menu
			</td>
		</tr>
		<tr>
			<td>2</td>
			<td class="td_left1">属性列表</td>
			<td>
			<div id="att">
			
			</div>
			</td>
		</tr>
	</table>
	</div>
	
	<div class="tabcontent" id="goods_5" style="display: none">
	<table cellpadding="0" cellspacing="1" class="list1">
		<tr>
			<th width="4%">ID</th>
			<th width="24%">商品相册</th>
			<th>操作</th>
		</tr>
		<tr>
			<td>1</td>
			<td class="td_left1">相册图片<p></p></td>
			<td>
<!--
EOT;
foreach ($photo as $val){
print <<<EOT
-->	
			<div id="r$val[imgid]" style="float:left; text-align:center; border: 1px solid #DADADA; margin: 4px; padding:2px;"><a href="javascript:;" onclick="remove('$val[imgid]','admincp.php?module=goods&action=delimg&id=$val[imgid]');"> [-]</a><br />
			<a href="$val[thumb]" target="_blank"><img src="$val[imgbig]" width="100" height="100" border="0" /></a><br />
			<input type="text" value="$val[img_desc]" size="15" name="old_idesc[]"/>
			</div>
<!--
EOT;
} print <<<EOT
-->
			</td>
		</tr>
		<tr>
			<td>2</td>
			<td class="td_left1">上传相册图片<p></p></td>
			<td>
			<div id="gallery">
			<p class="g_img"> <a href="javascript:;" class='addimg'>[+]</a>描述 <input type="text" name="img_desc[]" id="img_desc[]"  size="15" class="text" />&nbsp; &nbsp;图片<input type="file" name="gallery[]" id="gallery[]"  size="15" class="text" /><a href="javascript:;" class="delimg">[-]</a></p>
			</div>
			</td>
		</tr>
	</table>
	</div>
	
	<div class="tabcontent" id="goods_6" style="display: none">
	<table cellpadding="0" cellspacing="1" class="list1">
		<tr>
			<th colspan="3">关联商品</th>
		</tr>
		<tr>
			<td colspan="3">商品标题
			<input type="text" name="goods_title" id="goods_title"  size="30" maxlength="255" class="text" />
			<input type="button" name="query_goods" id="query_goods" value="搜索" class="inp" />
			<span class="cpsm">← 输入商品标题或者编码进行搜索.</span></td>
		</tr>
		<tr style="background:#ddd; font-weight:bold; text-align:center; height:20px;">
			<td width="45%">可选商品</td>
			<td width="10%">操 作</td>
			<td width="45%">关联商品列表</td>
		</tr>
		<tr>
			<td>
			<div id="article">
              	<select name="goods_list"   id="goods_list" size="16" style="width:100%" multiple></select>
          	</div>
		  	</td>
			<td style="text-align:center;">
			<p><input name="add_goods" type="button"  id="add_goods" value="添 加" class="inp" /></p><br />  
			<p><input name="romove_goods" type="button" id="romove_goods" value="移 除" class="inp" /></p><br />   
			<p><input name="alldel_goods" type="button" id="alldel_goods"  value="全 移" class="inp" /></p><br />   
			<p><input name="addall_goods" type="button" id="addall_goods" value="全 加" class="inp" /></p>
			</td>
			<td><select name="goods_lst" id="goods_lst" size="16" multiple style="width:100%">
<!--
EOT;
foreach ($goods_list as $val){
print <<<EOT
-->
<option value="$val[uid]">$val[goods_name]</option>   
<!--
EOT;
}
print <<<EOT
-->
			</select></td>
		</tr>
	</table>
	</div>
	
	<div class="tabcontent" id="goods_7" style="display: none">
	<table cellpadding="0" cellspacing="1" class="list1">
		<tr>
			<th colspan="3">关联文章</th>
		</tr>
		<tr>
			<td colspan="3">文章标题
			<input type="text" name="art_title" id="art_title"  size="30" maxlength="255" class="text"/>
			<input type="button" name="query_article" id="query_article" value="搜索" class="inp" />
			<span class="cpsm">← 输入文章标题进行搜索.</span></td>
		</tr>
		<tr style="background:#ddd; font-weight:bold; text-align:center; height:20px;">
			<td width="45%">可选文章</td>
			<td width="10%">操 作</td>
			<td width="45%">商品关联的文章</td>
		</tr>
		<tr>
			<td>
			<div id="article">
              	<select name="article_list"   id="article_list" size="16" style="width:100%" multiple></select>
          	</div>
		  	</td>
			<td style="text-align:center;">
			<p><input name="add" type="button"  id="add" value="添 加" class="inp" /></p><br />  
			<p><input name="romove" type="button" id="romove" value="移 除" class="inp" /></p><br />   
			<p><input name="alldel" type="button" id="alldel"  value="全 移" class="inp" /></p><br />   
			<p><input name="addall" type="button" id="addall" value="全 加" class="inp" /></p>
			</td>
			<td><select name="lst" id="lst" size="16" multiple style="width:100%">
<!--
EOT;
foreach ($art_list as $val){
print <<<EOT
-->
<option value="$val[uid]">$val[board_subject]</option>   
<!--
EOT;
}
print <<<EOT
-->
			</select></td>
		</tr>
	</table>
	</div>
	
	<div class="tabcontent" id="goods_8" style="display: none">
	<table cellpadding="0" cellspacing="1" class="list1">
		<tr>
			<th width="4%">ID</th>
			<th width="54%">其他信息</th>
			<th>操作</th>
		</tr>
		<tr>
			<td>1</td>
			<td class="td_left1">商品是否上架</td>
			<td>
			<input type="radio" name="upv"   value="1" $upv_y/>是
            <input type="radio" name="upv"   value="0" $upv_n/>否
			</td>
		</tr>
		<tr>
			<td>2</td>
			<td class="td_left1">上架时间</td>
			<td>
			 <input type="text" name="up_date" size="29" value="$up_date" id="up_date" class="text" /><input type="reset" value="..." onclick="return showCalendar('up_date', 'y-m-d');" class="inp" />
			</td>
		</tr>
		<tr>
			<td>3</td>
			<td class="td_left1">商品数量<p class="cpsm">← 输入库存商品数量。</p></td>
			<td><input type="text" name="goods_stock" id="goods_stock" value="$goods_stock" size="10" maxlength="10" class="text" /></td>
		</tr>
		<tr>
			<td>4</td>
			<td class="td_left1">预警数<p class="cpsm">← 输入库存预警数。</p></td>
			<td><input type="text" name="goods_check_stock" id="goods_check_stock" value="$goods_check_stock" size="10" maxlength="10" class="text" /></td>
		</tr>
		<tr>
			<td>5</td>
			<td class="td_left1">免费送货<p class="cpsm">← 商品免费送货时选择.</p></td>
			<td><input type="checkbox" name="goods_free_delivery" value="1" $free_delivery_y />免费送货</td>
		</tr>
		<tr>
			<td>6</td>
			<td class="td_left1">选择商品图标<p class="cpsm">此处为商品旁边小图标设定.</p></td>
			<td>
			<img src="images/admincp/good_hot.gif"/> <input type="checkbox" name="goods_addoption1" value="1"  $addoption1_y/>
			<img src="images/admincp/good_sale.gif"/> <input type="checkbox" name="goods_addoption2" value="1" $addoption2_y/>
			<img src="images/admincp/good_new.gif"/> <input type="checkbox" name="goods_addoption3" value="1"  $addoption3_y/>
			<img src="images/admincp/good_none.gif"/> <input type="checkbox" name="goods_addoption4" value="1" $addoption4_y/>
			</td>
		</tr>
		<tr>
			<td>7</td>
			<td class="td_left1">商品动画<p class="cpsm">← 请输入商品动画链接. </p></td>
			<td><input type="text" name="goods_movie" id="goods_movie" value="$goods_movie" size="30" maxlength="255" class="text" /></td>
		</tr>
		<tr>
			<td>8</td>
			<td class="td_left1">供货商/邮件<p class="cpsm">点击[供货商列表]选取已有供货商的信息.如列表中未列出请 <a href="admincp.php?module=supply&action=write">添加供货商</a></p></td>
			<td>
			<select name="goods_supply_id" id="goods_supply_id">
             </select>
            </td>
		</tr>
	</table>
	</div>
	
	<div class="tabcontent" id="goods_9" style="display: none">
	<table cellpadding="0" cellspacing="1" class="list1">
		<tr>
			<th width="4%">ID</th>
			<th width="54%">扩展信息</th>
			<th>操作</th>
		</tr>
		<tr>
			<td>1</td>
			<td class="td_left1">商品上层</td>
			<td><textarea name="goods_head" id="goods_head" rows="5"cols="35" class="text">$goods_head</textarea></td>
		</tr>
		<tr>
			<td>2</td>
			<td class="td_left1">商品下层</td>
			<td><textarea name="goods_foot" id="goods_foot" rows="5"cols="35" class="text">$goods_foot</textarea></td>
		</tr>
		<tr>
			<td>3</td>
			<td class="td_left1">商品咨询邮件</td>
			<td><input type="text" name="goods_email" id="goods_email" value="$goods_email" size="30" class="text" /></td>
		</tr>
		<tr>
			<td>4</td>
			<td class="td_left1">商品咨询电话</td>
			<td><input type="text" name="goods_phone" id="goods_phone" value="$goods_phone" size="30" class="text" /></td>
		</tr>
		<tr>
			<td>5</td>
			<td class="td_left1">管理员笔记<p class="cpsm">填写管理员专用的记录笔记, 方便您以后的管理.</p></td>
			<td><textarea name="goods_admin_memo" id="goods_admin_memo" rows="5"cols="35" class="text">$goods_note[note_msg]</textarea></td>
		</tr>
	</table>
	</div>
	</div>
	<div id="tfoot"><input type="submit" name="Submit" value="&nbsp;确 定&nbsp;" onclick="" /> <input type="reset" name="reset" value="&nbsp;重 置&nbsp;" /></div>
	</form>
</div>
<!-- end -->
<!--
EOT;
?>-->